package com.cavy.platform.server.repository;

import com.cavy.platform.server.domain.AbstractConfigMap;

import java.util.List;

public interface ConfigMapRepository {
    void save(AbstractConfigMap abstractConfigMap);

    int countByWorkspaceAndName(String workspace, String name);

    AbstractConfigMap load(String workspace, String name);

    List<AbstractConfigMap> list(String workspace, String key);

    void delete(AbstractConfigMap abstractConfigMap);
}
